package com.example.demo.service;

import com.example.demo.entity.Api;
import com.example.demo.entity.apiModel.GetExtractions;
import com.example.demo.entity.ApiRequestResult;
import com.example.demo.utils.PageInfoNew;

import java.util.List;

public interface ApiService {
    int insertApi(Api api);

    List<Api> findAllByName(String apiName);

    List<Api> findBySuiteId(Integer apiSuiteId);

    PageInfoNew<Api> findAllWithPage(int pageNum, int pageSize, Integer apiSuiteId,String apiName, Integer projectId);

    Api findById(int apiId);

    int updateApi(Api api);

    void deleteApi(int id);

    ApiRequestResult requestTestRun(Api api, List<GetExtractions> getExtractionsList);

    void createData(int tenantId,String accessToken);
}
